package com.hopu.v1.mapper.front.course;

import com.hopu.v1.pojo.course.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author admin
* @description 针对表【t_course(课程表)】的数据库操作Mapper
* @createDate 2024-09-25 16:06:13
* @Entity com.hopu.v1.pojo.course.Course
*/
public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 根据pid和status查询课程列表
     * @param pid
     * @param status
     * @return
     */
    List<Course> selectByPidAndStatus(Integer pid, Integer status);

    /**
     * 根据课程id查询课后作业
     * @param id
     * @return
     */
    List<Course> selectHomeworkByCourseId(Integer id);
}




